﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KPIS.GERP.GHRMS.BLL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.MODEL;

namespace KPIS.GERP.GHRMS.APP.App_UI.UserControls
{
    public partial class MP_JobSiteDetails : System.Web.UI.UserControl
    {
        private IJobSiteBLL jobsiteBLL = new JobSiteBLL();

        private object _dataItem = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<JobSiteInfo> Info = jobsiteBLL.ListJobSiteBySequence(Session["JobSiteSeq"].ToString());

            lblName.Text = Info[0].Name;
            lblRefNo.Text = Info[0].RefNo;
            lblUpperName.Text = "";// Info[0].JobSites.Name;
            lblLevel.Text = Info[0].JobSiteLevels.Name;
            lblGFMIS.Text = Info[0].GFMIS;
            lblNameShort.Text = Info[0].NameShort;
            lblNameEng.Text = Info[0].NameEng;
            lblNameEngShort.Text = Info[0].NameEngShort;
            //lblStartDate.Text = string.Format("{0:dd/MMMM/yyyy}", Info[0].StartDate);
            lblJobDescription.Text = Info[0].JobDescription;
            lblScope.Text = Info[0].WorkAreas.Name;
            lblAddress.Text = Info[0].Address.Address;
            lblCountry.Text = "";// Info[0].Address.Countries.Name;
            lblCountryZone.Text = "";//Info[0].Address.Countries.CountryZones.Name;
            lblTel.Text = Info[0].Address.Phone;
            lblFax.Text = Info[0].Address.Fax;
            lblRemarks.Text = Info[0].Remarks;
        }
        public object DataItem
        {
            get
            {
                return this._dataItem;
            }
            set
            {
                this._dataItem = value;
            }
        }

    }
}